package com.dataimport.entity.targetentity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 图书馆借记录
 *
 * @author 章珑赢
 * @date 2022/09/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LibraryBorrowRecords {
  private Long id;
  private Long userId;
  private String bookId;
  private DateTime borrowTime;
  private DateTime shouldReturnTime;
  private DateTime returnTime;
  /**
   * 创建时间
   */
  @TableField(value = "create_time",fill = FieldFill.INSERT)
  private Date createTime;
  /**
   * 修改时间
   */
  @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;

}
